package com.xbongbong.pro.statistic.result.pojo.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * 报表结果
 * @author zcp
 * @version v1.0
 * @date 2019/2/13 11:21
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ChartResultVO extends BaseVO {
    private static final long serialVersionUID = 5451903704161294725L;

    /**
     * 图表
     */
    private List<ChartResultDetailVO> chartList;

    /**
     * 报错日志 key为chartId value为报错
     */
    private List<JSONObject> errors;
    /**
     * API_ERROR_241013前端显示等待
     */
    private List<Long>  waitIdIn = new ArrayList<>();

    /**
     * 统计图表
     */
    private JSONArray body;

    /**
     * 统计图表
     */
    private JSONObject head;

    public  void addWaitIdIn(Long id){
        waitIdIn.add(id);
    }
}
